from apps.myfrm import models
from utils import ViewModel
from utils.genJsonResponse import json_response


class MyFrmDataView(ViewModel.BasicView):
    def get(self):
        res = self.session.query(models.SpiderData).all()
        data = {
            'res': res
        }
        print(data)
        my_data = json_response(data=data)
        print(my_data)
        return my_data